import {MutationType} from "../../mutation-types";

export default {
    [MutationType.Common.TOGGLE_LOGIN_DIALOG]: (state, {visible}) => {
        if (visible !== undefined) {
            state.loginDialogVisible = visible;
        } else {
            state.loginDialogVisible = !state.loginDialogVisible;
        }
    },
}